import { httpInstance } from '@/utils/request'

interface SubmitCaseAPIData {
  case_id: string
  extent: string
  mobile: string
}

interface SubmitCaseAPIResData {
  code: number
  data: null
  msg: string
  time: string
}

export function submitCaseAPI(data: SubmitCaseAPIData, token: string) {
  return httpInstance.post<
    SubmitCaseAPIResData,
    SubmitCaseAPIData
  >('api/Case_project/caseSubmit', data, { headers: { token } })
}
